home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / Slots.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  21.1 KB  |  537 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Slots.h
  3.  
  4.      Contains:    Slot Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1986-1993, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __SLOTS__
  19. #define __SLOTS__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __EVENTS__
  25. #include <Events.h>
  26. #endif
  27. #ifndef __FILES__
  28. #include <Files.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53.  
  54. enum {
  55.     fCardIsChanged                = 1,                            /*Card is Changed field in StatusFlags field of sInfoArray*/
  56.     fCkForSame                    = 0,                            /*For SearchSRT. Flag to check for SAME sResource in the table. */
  57.     fCkForNext                    = 1,                            /*For SearchSRT. Flag to check for NEXT sResource in the table. */
  58.     fWarmStart                    = 2                                /*If this bit is set then warm start else cold start.*/
  59. };
  60.  
  61.  
  62. enum {
  63.     stateNil                    = 0,                            /*State*/
  64.     stateSDMInit                = 1,                            /*:Slot declaration manager Init*/
  65.     statePRAMInit                = 2,                            /*:sPRAM record init*/
  66.     statePInit                    = 3,                            /*:Primary init*/
  67.     stateSInit                    = 4                                /*:Secondary init*/
  68. };
  69.  
  70.  
  71. enum {
  72.                                                                 /* flags for spParamData */
  73.     fall                        = 0,                            /* bit 0: set=search enabled/disabled sRsrc's */
  74.     foneslot                    = 1,                            /*    1: set=search sRsrc's in given slot only */
  75.     fnext                        = 2                                /*    2: set=search for next sRsrc */
  76. };
  77.  
  78.  
  79. enum {
  80.                                                                 /* Misc masks */
  81.     catMask                        = 0x08,                            /* sets spCategory field of spTBMask (bit 3) */
  82.     cTypeMask                    = 0x04,                            /* sets spCType    field of spTBMask (bit 2) */
  83.     drvrSWMask                    = 0x02,                            /* sets spDrvrSW   field of spTBMask (bit 1) */
  84.     drvrHWMask                    = 0x01                            /* sets spDrvrHW      field of spTBMask (bit 0) */
  85. };
  86.  
  87. typedef CALLBACK_API( short , SlotIntServiceProcPtr )(long sqParameter);
  88. /*
  89.     WARNING: SlotIntServiceProcPtr uses register based parameters under classic 68k
  90.              and cannot be written in a high-level language without 
  91.              the help of mixed mode or assembly glue.
  92. */
  93. typedef REGISTER_UPP_TYPE(SlotIntServiceProcPtr)                 SlotIntServiceUPP;
  94. enum { uppSlotIntServiceProcInfo = 0x0000B822 };                 /* register 2_bytes:D0 Func(4_bytes:A1) */
  95. #define NewSlotIntServiceProc(userRoutine)                         (SlotIntServiceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSlotIntServiceProcInfo, GetCurrentArchitecture())
  96. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  97.     #pragma parameter __D0 CallSlotIntServiceProc(__A0, __A1)
  98.     short CallSlotIntServiceProc(SlotIntServiceUPP routine, long sqParameter) = 0x4E90;
  99. #else
  100.     #define CallSlotIntServiceProc(userRoutine, sqParameter)     CALL_ONE_PARAMETER_UPP((userRoutine), uppSlotIntServiceProcInfo, (sqParameter))
  101. #endif
  102. struct SlotIntQElement {
  103.     Ptr                             sqLink;                        /*ptr to next element*/
  104.     short                             sqType;                        /*queue type ID for validity*/
  105.     short                             sqPrio;                        /*priority*/
  106.     SlotIntServiceUPP                 sqAddr;                        /*interrupt service routine*/
  107.     long                             sqParm;                        /*optional A1 parameter*/
  108. };
  109. typedef struct SlotIntQElement SlotIntQElement;
  110.  
  111. typedef SlotIntQElement *                SQElemPtr;
  112. struct SpBlock {
  113.     long                             spResult;                    /*FUNCTION Result*/
  114.     Ptr                             spsPointer;                    /*structure pointer*/
  115.     long                             spSize;                        /*size of structure*/
  116.     long                             spOffsetData;                /*offset/data field used by sOffsetData*/
  117.     Ptr                             spIOFileName;                /*ptr to IOFile name for sDisDrvrName*/
  118.     Ptr                             spsExecPBlk;                /*pointer to sExec parameter block.*/
  119.     long                             spParamData;                /*misc parameter data (formerly spStackPtr).*/
  120.     long                             spMisc;                        /*misc field for SDM.*/
  121.     long                             spReserved;                    /*reserved for future expansion*/
  122.     short                             spIOReserved;                /*Reserved field of Slot Resource Table*/
  123.     short                             spRefNum;                    /*RefNum*/
  124.     short                             spCategory;                    /*sType: Category*/
  125.     short                             spCType;                    /*Type*/
  126.     short                             spDrvrSW;                    /*DrvrSW*/
  127.     short                             spDrvrHW;                    /*DrvrHW*/
  128.     SInt8                             spTBMask;                    /*type bit mask bits 0..3 mask words 0..3*/
  129.     SInt8                             spSlot;                        /*slot number*/
  130.     SInt8                             spID;                        /*structure ID*/
  131.     SInt8                             spExtDev;                    /*ID of the external device*/
  132.     SInt8                             spHwDev;                    /*Id of the hardware device.*/
  133.     SInt8                             spByteLanes;                /*bytelanes from card ROM format block*/
  134.     SInt8                             spFlags;                    /*standard flags*/
  135.     SInt8                             spKey;                        /*Internal use only*/
  136. };
  137. typedef struct SpBlock SpBlock;
  138.  
  139. typedef SpBlock *                        SpBlockPtr;
  140. struct SInfoRecord {
  141.     Ptr                             siDirPtr;                    /*Pointer to directory*/
  142.     short                             siInitStatusA;                /*initialization E*/
  143.     short                             siInitStatusV;                /*status returned by vendor init code*/
  144.     SInt8                             siState;                    /*initialization state*/
  145.     SInt8                             siCPUByteLanes;                /*0=[d0..d7] 1=[d8..d15]*/
  146.     SInt8                             siTopOfROM;                    /*Top of ROM= $FssFFFFx: x is TopOfROM*/
  147.     SInt8                             siStatusFlags;                /*bit 0 - card is changed*/
  148.     short                             siTOConst;                    /*Time Out C for BusErr*/
  149.     SInt8                             siReserved[2];                /*reserved*/
  150.     Ptr                             siROMAddr;                    /* addr of top of ROM */
  151.     SInt8                             siSlot;                        /* slot number */
  152.     SInt8                             siPadding[3];                /* reserved */
  153. };
  154. typedef struct SInfoRecord SInfoRecord;
  155.  
  156. typedef SInfoRecord *                    SInfoRecPtr;
  157. struct SDMRecord {
  158.     ProcPtr                         sdBEVSave;                    /*Save old BusErr vector*/
  159.     ProcPtr                         sdBusErrProc;                /*Go here to determine if it is a BusErr*/
  160.     ProcPtr                         sdErrorEntry;                /*Go here if BusErrProc finds real BusErr*/
  161.     long                             sdReserved;                    /*Reserved*/
  162. };
  163. typedef struct SDMRecord SDMRecord;
  164.  
  165. struct FHeaderRec {
  166.     long                             fhDirOffset;                /*offset to directory*/
  167.     long                             fhLength;                    /*length of ROM*/
  168.     long                             fhCRC;                        /*CRC*/
  169.     SInt8                             fhROMRev;                    /*revision of ROM*/
  170.     SInt8                             fhFormat;                    /*format - 2*/
  171.     long                             fhTstPat;                    /*test pattern*/
  172.     SInt8                             fhReserved;                    /*reserved*/
  173.     SInt8                             fhByteLanes;                /*ByteLanes*/
  174. };
  175. typedef struct FHeaderRec FHeaderRec;
  176.  
  177. typedef FHeaderRec *                    FHeaderRecPtr;
  178. /*
  179.    
  180.        Extended Format header block  -  extended declaration ROM format header for super sRsrc directories.    <H2><SM0>
  181.    
  182. */
  183.  
  184. struct XFHeaderRec {
  185.     long                             fhXSuperInit;                /*Offset to SuperInit SExecBlock    <fhFormat,offset>*/
  186.     long                             fhXSDirOffset;                /*Offset to SuperDirectory            <$FE,offset>*/
  187.     long                             fhXEOL;                        /*Psuedo end-of-list                <$FF,nil>*/
  188.     long                             fhXSTstPat;                    /*TestPattern*/
  189.     long                             fhXDirOffset;                /*Offset to (minimal) directory*/
  190.     long                             fhXLength;                    /*Length of ROM*/
  191.     long                             fhXCRC;                        /*CRC*/
  192.     SInt8                             fhXROMRev;                    /*Revision of ROM*/
  193.     SInt8                             fhXFormat;                    /*Format-2*/
  194.     long                             fhXTstPat;                    /*TestPattern*/
  195.     SInt8                             fhXReserved;                /*Reserved*/
  196.     SInt8                             fhXByteLanes;                /*ByteLanes*/
  197. };
  198. typedef struct XFHeaderRec XFHeaderRec;
  199.  
  200. typedef XFHeaderRec *                    XFHeaderRecPtr;
  201. struct SEBlock {
  202.     UInt8                             seSlot;                        /*Slot number.*/
  203.     UInt8                             sesRsrcId;                    /*sResource Id.*/
  204.     short                             seStatus;                    /*Status of code executed by sExec.*/
  205.     UInt8                             seFlags;                    /*Flags*/
  206.     UInt8                             seFiller0;                    /*Filler, must be SignedByte to align on odd boundry*/
  207.     UInt8                             seFiller1;                    /*Filler*/
  208.     UInt8                             seFiller2;                    /*Filler*/
  209.     long                             seResult;                    /*Result of sLoad.*/
  210.     long                             seIOFileName;                /*Pointer to IOFile name.*/
  211.     UInt8                             seDevice;                    /*Which device to read from.*/
  212.     UInt8                             sePartition;                /*The partition.*/
  213.     UInt8                             seOSType;                    /*Type of OS.*/
  214.     UInt8                             seReserved;                    /*Reserved field.*/
  215.     UInt8                             seRefNum;                    /*RefNum of the driver.*/
  216.     UInt8                             seNumDevices;                /* Number of devices to load.*/
  217.     UInt8                             seBootState;                /*State of StartBoot code.*/
  218.     SInt8                             filler;
  219. };
  220. typedef struct SEBlock SEBlock;
  221.  
  222. /*  Principle  */
  223.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  224.                                                                                             #pragma parameter __D0 SReadByte(__A0)
  225.                                                                                             #endif
  226. EXTERN_API( OSErr )
  227. SReadByte                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7000, 0xA06E);
  228.  
  229.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  230.                                                                                             #pragma parameter __D0 SReadWord(__A0)
  231.                                                                                             #endif
  232. EXTERN_API( OSErr )
  233. SReadWord                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7001, 0xA06E);
  234.  
  235.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  236.                                                                                             #pragma parameter __D0 SReadLong(__A0)
  237.                                                                                             #endif
  238. EXTERN_API( OSErr )
  239. SReadLong                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7002, 0xA06E);
  240.  
  241.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  242.                                                                                             #pragma parameter __D0 SGetCString(__A0)
  243.                                                                                             #endif
  244. EXTERN_API( OSErr )
  245. SGetCString                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7003, 0xA06E);
  246.  
  247.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  248.                                                                                             #pragma parameter __D0 SGetBlock(__A0)
  249.                                                                                             #endif
  250. EXTERN_API( OSErr )
  251. SGetBlock                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7005, 0xA06E);
  252.  
  253.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  254.                                                                                             #pragma parameter __D0 SFindStruct(__A0)
  255.                                                                                             #endif
  256. EXTERN_API( OSErr )
  257. SFindStruct                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7006, 0xA06E);
  258.  
  259.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  260.                                                                                             #pragma parameter __D0 SReadStruct(__A0)
  261.                                                                                             #endif
  262. EXTERN_API( OSErr )
  263. SReadStruct                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7007, 0xA06E);
  264.  
  265. /*  Special  */
  266.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  267.                                                                                             #pragma parameter __D0 SReadInfo(__A0)
  268.                                                                                             #endif
  269. EXTERN_API( OSErr )
  270. SReadInfo                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7010, 0xA06E);
  271.  
  272.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  273.                                                                                             #pragma parameter __D0 SReadPRAMRec(__A0)
  274.                                                                                             #endif
  275. EXTERN_API( OSErr )
  276. SReadPRAMRec                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7011, 0xA06E);
  277.  
  278.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  279.                                                                                             #pragma parameter __D0 SPutPRAMRec(__A0)
  280.                                                                                             #endif
  281. EXTERN_API( OSErr )
  282. SPutPRAMRec                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7012, 0xA06E);
  283.  
  284.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  285.                                                                                             #pragma parameter __D0 SReadFHeader(__A0)
  286.                                                                                             #endif
  287. EXTERN_API( OSErr )
  288. SReadFHeader                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7013, 0xA06E);
  289.  
  290.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  291.                                                                                             #pragma parameter __D0 SNextSRsrc(__A0)
  292.                                                                                             #endif
  293. EXTERN_API( OSErr )
  294. SNextSRsrc                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7014, 0xA06E);
  295.  
  296.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  297.                                                                                             #pragma parameter __D0 SNextTypeSRsrc(__A0)
  298.                                                                                             #endif
  299. EXTERN_API( OSErr )
  300. SNextTypeSRsrc                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7015, 0xA06E);
  301.  
  302.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  303.                                                                                             #pragma parameter __D0 SRsrcInfo(__A0)
  304.                                                                                             #endif
  305. EXTERN_API( OSErr )
  306. SRsrcInfo                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7016, 0xA06E);
  307.  
  308.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  309.                                                                                             #pragma parameter __D0 SDisposePtr(__A0)
  310.                                                                                             #endif
  311. EXTERN_API( OSErr )
  312. SDisposePtr                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7017, 0xA06E);
  313.  
  314.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  315.                                                                                             #pragma parameter __D0 SCkCardStat(__A0)
  316.                                                                                             #endif
  317. EXTERN_API( OSErr )
  318. SCkCardStat                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7018, 0xA06E);
  319.  
  320.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  321.                                                                                             #pragma parameter __D0 SReadDrvrName(__A0)
  322.                                                                                             #endif
  323. EXTERN_API( OSErr )
  324. SReadDrvrName                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7019, 0xA06E);
  325.  
  326.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  327.                                                                                             #pragma parameter __D0 SFindSRTRec(__A0)
  328.                                                                                             #endif
  329. EXTERN_API( OSErr )
  330. SFindSRTRec                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x701A, 0xA06E);
  331.  
  332.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  333.                                                                                             #pragma parameter __D0 SFindDevBase(__A0)
  334.                                                                                             #endif
  335. EXTERN_API( OSErr )
  336. SFindDevBase                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x701B, 0xA06E);
  337.  
  338.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  339.                                                                                             #pragma parameter __D0 SFindBigDevBase(__A0)
  340.                                                                                             #endif
  341. EXTERN_API( OSErr )
  342. SFindBigDevBase                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x701C, 0xA06E);
  343.  
  344. /*  Advanced  */
  345.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  346.                                                                                             #pragma parameter __D0 InitSDeclMgr(__A0)
  347.                                                                                             #endif
  348. EXTERN_API( OSErr )
  349. InitSDeclMgr                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7020, 0xA06E);
  350.  
  351.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  352.                                                                                             #pragma parameter __D0 SPrimaryInit(__A0)
  353.                                                                                             #endif
  354. EXTERN_API( OSErr )
  355. SPrimaryInit                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7021, 0xA06E);
  356.  
  357.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  358.                                                                                             #pragma parameter __D0 SCardChanged(__A0)
  359.                                                                                             #endif
  360. EXTERN_API( OSErr )
  361. SCardChanged                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7022, 0xA06E);
  362.  
  363.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  364.                                                                                             #pragma parameter __D0 SExec(__A0)
  365.                                                                                             #endif
  366. EXTERN_API( OSErr )
  367. SExec                            (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7023, 0xA06E);
  368.  
  369.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  370.                                                                                             #pragma parameter __D0 SOffsetData(__A0)
  371.                                                                                             #endif
  372. EXTERN_API( OSErr )
  373. SOffsetData                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7024, 0xA06E);
  374.  
  375.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  376.                                                                                             #pragma parameter __D0 SInitPRAMRecs(__A0)
  377.                                                                                             #endif
  378. EXTERN_API( OSErr )
  379. SInitPRAMRecs                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7025, 0xA06E);
  380.  
  381.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  382.                                                                                             #pragma parameter __D0 SReadPBSize(__A0)
  383.                                                                                             #endif
  384. EXTERN_API( OSErr )
  385. SReadPBSize                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7026, 0xA06E);
  386.  
  387.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  388.                                                                                             #pragma parameter __D0 SCalcStep(__A0)
  389.                                                                                             #endif
  390. EXTERN_API( OSErr )
  391. SCalcStep                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7028, 0xA06E);
  392.  
  393.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  394.                                                                                             #pragma parameter __D0 SInitSRsrcTable(__A0)
  395.                                                                                             #endif
  396. EXTERN_API( OSErr )
  397. SInitSRsrcTable                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7029, 0xA06E);
  398.  
  399.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  400.                                                                                             #pragma parameter __D0 SSearchSRT(__A0)
  401.                                                                                             #endif
  402. EXTERN_API( OSErr )
  403. SSearchSRT                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702A, 0xA06E);
  404.  
  405.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  406.                                                                                             #pragma parameter __D0 SUpdateSRT(__A0)
  407.                                                                                             #endif
  408. EXTERN_API( OSErr )
  409. SUpdateSRT                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702B, 0xA06E);
  410.  
  411.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  412.                                                                                             #pragma parameter __D0 SCalcSPointer(__A0)
  413.                                                                                             #endif
  414. EXTERN_API( OSErr )
  415. SCalcSPointer                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702C, 0xA06E);
  416.  
  417.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  418.                                                                                             #pragma parameter __D0 SGetDriver(__A0)
  419.                                                                                             #endif
  420. EXTERN_API( OSErr )
  421. SGetDriver                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702D, 0xA06E);
  422.  
  423.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  424.                                                                                             #pragma parameter __D0 SPtrToSlot(__A0)
  425.                                                                                             #endif
  426. EXTERN_API( OSErr )
  427. SPtrToSlot                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702E, 0xA06E);
  428.  
  429.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  430.                                                                                             #pragma parameter __D0 SFindSInfoRecPtr(__A0)
  431.                                                                                             #endif
  432. EXTERN_API( OSErr )
  433. SFindSInfoRecPtr                (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x702F, 0xA06E);
  434.  
  435.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  436.                                                                                             #pragma parameter __D0 SFindSRsrcPtr(__A0)
  437.                                                                                             #endif
  438. EXTERN_API( OSErr )
  439. SFindSRsrcPtr                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7030, 0xA06E);
  440.  
  441.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  442.                                                                                             #pragma parameter __D0 SDeleteSRTRec(__A0)
  443.                                                                                             #endif
  444. EXTERN_API( OSErr )
  445. SDeleteSRTRec                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7031, 0xA06E);
  446.  
  447. EXTERN_API( OSErr )
  448. OpenSlot                        (ParmBlkPtr             paramBlock,
  449.                                  Boolean                 async);
  450.  
  451.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  452.                                                                                             #pragma parameter __D0 OpenSlotSync(__A0)
  453.                                                                                             #endif
  454. EXTERN_API( OSErr )
  455. OpenSlotSync                    (ParmBlkPtr             paramBlock)                            ONEWORDINLINE(0xA200);
  456.  
  457.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  458.                                                                                             #pragma parameter __D0 OpenSlotAsync(__A0)
  459.                                                                                             #endif
  460. EXTERN_API( OSErr )
  461. OpenSlotAsync                    (ParmBlkPtr             paramBlock)                            ONEWORDINLINE(0xA600);
  462.  
  463. /*  Device Manager Slot Support  */
  464.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  465.                                                                                             #pragma parameter __D0 SIntInstall(__A0, __D0)
  466.                                                                                             #endif
  467. EXTERN_API( OSErr )
  468. SIntInstall                        (SQElemPtr                 sIntQElemPtr,
  469.                                  short                     theSlot)                            ONEWORDINLINE(0xA075);
  470.  
  471.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  472.                                                                                             #pragma parameter __D0 SIntRemove(__A0, __D0)
  473.                                                                                             #endif
  474. EXTERN_API( OSErr )
  475. SIntRemove                        (SQElemPtr                 sIntQElemPtr,
  476.                                  short                     theSlot)                            ONEWORDINLINE(0xA076);
  477.  
  478.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  479.                                                                                             #pragma parameter __D0 SVersion(__A0)
  480.                                                                                             #endif
  481. EXTERN_API( OSErr )
  482. SVersion                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7008, 0xA06E);
  483.  
  484.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  485.                                                                                             #pragma parameter __D0 SetSRsrcState(__A0)
  486.                                                                                             #endif
  487. EXTERN_API( OSErr )
  488. SetSRsrcState                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x7009, 0xA06E);
  489.  
  490.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  491.                                                                                             #pragma parameter __D0 InsertSRTRec(__A0)
  492.                                                                                             #endif
  493. EXTERN_API( OSErr )
  494. InsertSRTRec                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x700A, 0xA06E);
  495.  
  496.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  497.                                                                                             #pragma parameter __D0 SGetSRsrc(__A0)
  498.                                                                                             #endif
  499. EXTERN_API( OSErr )
  500. SGetSRsrc                        (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x700B, 0xA06E);
  501.  
  502.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  503.                                                                                             #pragma parameter __D0 SGetTypeSRsrc(__A0)
  504.                                                                                             #endif
  505. EXTERN_API( OSErr )
  506. SGetTypeSRsrc                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x700C, 0xA06E);
  507.  
  508.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  509.                                                                                             #pragma parameter __D0 SGetSRsrcPtr(__A0)
  510.                                                                                             #endif
  511. EXTERN_API( OSErr )
  512. SGetSRsrcPtr                    (SpBlockPtr             spBlkPtr)                            TWOWORDINLINE(0x701D, 0xA06E);
  513.  
  514.  
  515.  
  516.  
  517. #if PRAGMA_STRUCT_ALIGN
  518.     #pragma options align=reset
  519. #elif PRAGMA_STRUCT_PACKPUSH
  520.     #pragma pack(pop)
  521. #elif PRAGMA_STRUCT_PACK
  522.     #pragma pack()
  523. #endif
  524.  
  525. #ifdef PRAGMA_IMPORT_OFF
  526. #pragma import off
  527. #elif PRAGMA_IMPORT
  528. #pragma import reset
  529. #endif
  530.  
  531. #ifdef __cplusplus
  532. }
  533. #endif
  534.  
  535. #endif /* __SLOTS__ */
  536.  
  537.